import { WindowName } from "@/mdesign-lib/mdesign-main.js";
import { IpcWindow } from "@/mdesign-lib/mdesign-app.umd.js";

export interface ValidateRuleWindowParams {
  projectId: string;
  modelId?: string;
}

export type CloseData = {
  windowName: WindowName;
  success: boolean;
  checkStart: boolean;
};

export const validateRuleWindow = new IpcWindow<
  // 参数
  ValidateRuleWindowParams,
  // 返回值
  CloseData
>(WindowName.validateRule);
